﻿
CREATE FUNCTION [dbo].[OffsetDate](
	@Offset int,
	@Date datetime
)RETURNS datetime WITH SCHEMABINDING
AS BEGIN RETURN DATEADD(hh,dbo.TimeOffset(ISNULL(@Offset,dbo.Config_LocalTimeOffset())),@Date) END

